<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head th:replace="_fragments_anthor :: head(~{::title})">
    <meta charset="UTF-8">
    <!--移动端的展示情况-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
    <link rel="stylesheet" href="../static/css/writing.css">
    <link rel="stylesheet" href="../static/css/style.css">
    <style>
        /* .commonPattern {
            background: #fff !important;
        } */
        /* .sanDa .ui.segment {
            border: none !important;
        } */

    </style>
</head>

<body>
<div id="particles-js"></div>
    <!--导航-->
    <nav th:replace="_fragments_anthor :: menu(1)" class="ui inverted attached segment m-padded-tb-mini navDiv-active">
        <div class="ui teal header">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">Turo</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini home icon"></i>首页</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini idea icon"></i>分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon"></i>标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon"></i>归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini info icon"></i>关于我</a>
                <div class="right m-item item m-mobile-hide">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="Search....">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>

    </nav>

    <div class="ui blogImg">
        <img th:src="@{/img/new5.jpg}"  alt="" class="ui rounded fluid image">
        <div class="ui blogTitle">
            <div class="blogZi">
                <p class="ui center aligned header font-s" >在这个熙熙攘攘的世界里，选择一种安静的生活态度，</p>
                <p class="ui center aligned header font-s">然后在安静中，选择不慌不忙的坚强！</p>
                <p class="ui center aligned header font-s nbsp"> ———高五毛———</p>
            </div>
        </div>
    </div>

    <!--中间部分-->
    <div class="m-container-small m-padded-tb-big archivesMiddle">
        <div class="ui container sanDa">
            <div class="ui top attached segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">搜索结果</h3>
                    </div>
<!--                    <div class="right aligned column" th:if="${page.totalElements}==0">-->
<!--&lt;!&ndash;                        th:text="${page.totalElements}"&ndash;&gt;-->
<!--                        <h2 class="ui orange header m-inline-block m-text-thin"  >-->
<!--                           <div>-->
<!--                               <span>fhpahifapif</span>-->
<!--                           </div>-->
<!--                        </h2>-->
<!--                    </div>-->
                </div>
                <div class="right aligned column location" th:if="${page.totalElements}==0">
                    <!--                        th:text="${page.totalElements}"-->
<!--                    <h2 class="ui orange header m-inline-block m-text-thin"  >-->
<!--                        <div >-->
<!--                            <span>fhpahifapif</span>-->
<!--                        </div>-->
<!--                    </h2>-->

                    <p class="location_style"> 糟糕！涉及到知识盲区了.....</p>
                </div>
            </div>

            <div class="ui top attached segment grid ">
                <div class=" row ui padded raised link card segment article " th:each="blog:${page.content}">
                    <div class="eleven wide column">
                        <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">你真正的了解Java吗？</a></h3>
                        <p class="m-text" th:text="|${blog.description}......|">对于Java这门高级语言的理解，一般都停留在它是这个行业的领军者，这个行业最火的一个编程语言……</p>
                        <div class="ui grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://unsplash.it/100/100?image=1005" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                        <div class="content"><a class="header" th:text="${blog.user.nickName}">turo</a></div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-4-11</span>
                                    </div>
                                    <div class="item">
                                        <i class="eye icon"></i><span th:text="${blog.views}">4244</span>
                                    </div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>
                            </div>
                        </div>
                    </div>
                    <div class="right aligned five wide column ">
                        <a th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                            <img src="https://unsplash.it/800/450?image=1005" th:src="${blog.firstPicture}" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
            <!--footer-->
            <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <a th:href="@{/(page=${page.number}-1)}" th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                    </div>
                    <div class="right aligned column">
                        <a th:href="@{/(page=${page.number}+1)}" th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--底部footer-->
    <footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive bottom">
        <div class="ui center aligned container bottom-one">
            <div class="ui inverted divided stackable grid " id="bottom-two">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/img/wechat.jpg" th:src="@{/img/wechat.jpg}" class="ui rounded image" alt="" style="width: 110px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-spaced m-opacity-mini">学习网站 </h4>
                    <div class="ui inverted link list">
                        <a href="https://github.com/" class="item"><i class="github icon"></i>GitHub</a>
                        <a href="https://www.bilibili.com/" class="item"><i class="bullhorn icon"></i>BiliBili</a>
                        <a href="https://gitee.com/" class="item"><i class="git icon"></i>Gitee</a>
                        <a href="" class="item"><i class="paper plane icon"></i>CSDN</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header  m-text-spaced m-opacity-mini">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item" >Email: none-j@qq.com</a>
                        <a href="#" class="item">QQ: 1521126127</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header  m-text-spaced m-opacity-mini">Turo</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">这是我的个人博客、会分享关于编程、写作、学习、思考相关的任何内容，希望可以给来到这的人有所帮助……</p>
                </div>
            </div>
            <div class="ui inverted section divider "></div>
            <div>
                <div class="m-text-thin m-text-spaced m-opacity-tiny" id="time"></div>
                <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright @2021-2022 Turo Designed by Turo</p>
            </div>
        </div>
    </footer>

    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script src="../static/lib/js/writing.js"></script>
    <script src="../static/lib/js/particles.min.js"></script>
    <script src="../static/lib/js/app.js"></script>
    <!--/*/</th:block>/*/-->
    <script>
        $('.menu.toggle').click(function() {
            $('.m-item').toggleClass('m-mobile-hide');
        });
    </script>
</body>

</html>